home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / book / Chap17 / GLView / GLWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-18  |  1.3 KB  |  55 lines

  1. #if !defined(AFX_GLWINDOW_H__048D92C6_6DF2_11D3_8A92_00A0CC2492EC__INCLUDED_)
  2. #define AFX_GLWINDOW_H__048D92C6_6DF2_11D3_8A92_00A0CC2492EC__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // GLWindow.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CGLWindow window
  12.  
  13. class CGLWindow : public CWnd
  14. {
  15. // Construction
  16. public:
  17.     CGLWindow();
  18.  
  19. // Attributes
  20. public:
  21.  
  22. // Operations
  23. public:
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CGLWindow)
  28.     //}}AFX_VIRTUAL
  29.  
  30. // Implementation
  31. public:
  32.     int m_nPixelFormat;
  33.     HGLRC m_hRC;
  34.     HDC m_hDC;
  35.     virtual ~CGLWindow();
  36.  
  37.     // Generated message map functions
  38. protected:
  39.     GLuint m_Sides[6];
  40.     //{{AFX_MSG(CGLWindow)
  41.     afx_msg void OnPaint();
  42.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  43.     afx_msg void OnDestroy();
  44.     afx_msg void OnSize(UINT nType, int cx, int cy);
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50.  
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  53.  
  54. #endif // !defined(AFX_GLWINDOW_H__048D92C6_6DF2_11D3_8A92_00A0CC2492EC__INCLUDED_)
  55.